package com.foreverwin.jzymes.framework.quartz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 点检任务维护表 Z_SYS_JOB
 * 
 * @author ervin
 * @date 2019-03-11
 */
public class SysJob implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 任务编号 */
	private String jobName;
	/** 任务描述 */
	private String jobDesc;
	/** 任务组 */
	private String jobGroup;
	/** 任务方法 */
	private String methodName;
	/** 任务参数 */
	private String methodParam;
	/** 执行计划 */
	private String cronExpression;
	/** 失败激活策略 */
	private String misfirePolicy;
	/** 任务状态 */
	private String status;
	/** 备注 */
	private String remark;
	/** 创建日期 */
	private Date createdDateTime;
	/** 更新日期 */
	private Date updatedDateTime;
	/** 创建人员 */
	private String createUserBo;
	/** 更新人员 */
	private String updateUserBo;

	private Map<String,String> jobParamMap;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setJobName(String jobName) 
	{
		this.jobName = jobName;
	}

	public String getJobName() 
	{
		return jobName;
	}
	public void setJobDesc(String jobDesc) 
	{
		this.jobDesc = jobDesc;
	}

	public String getJobDesc() 
	{
		return jobDesc;
	}
	public void setJobGroup(String jobGroup) 
	{
		this.jobGroup = jobGroup;
	}

	public String getJobGroup() 
	{
		return jobGroup;
	}
	public void setMethodName(String methodName) 
	{
		this.methodName = methodName;
	}

	public String getMethodName() 
	{
		return methodName;
	}
	public void setMethodParam(String methodParam) 
	{
		this.methodParam = methodParam;
	}

	public String getMethodParam() 
	{
		return methodParam;
	}
	public void setCronExpression(String cronExpression) 
	{
		this.cronExpression = cronExpression;
	}

	public String getCronExpression() 
	{
		return cronExpression;
	}
	public void setMisfirePolicy(String misfirePolicy) 
	{
		this.misfirePolicy = misfirePolicy;
	}

	public String getMisfirePolicy() 
	{
		return misfirePolicy;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	public void setCreatedDateTime(Date createdDateTime) 
	{
		this.createdDateTime = createdDateTime;
	}

	public Date getCreatedDateTime() 
	{
		return createdDateTime;
	}
	public void setUpdatedDateTime(Date updatedDateTime) 
	{
		this.updatedDateTime = updatedDateTime;
	}

	public Date getUpdatedDateTime() 
	{
		return updatedDateTime;
	}
	public void setCreateUserBo(String createUserBo) 
	{
		this.createUserBo = createUserBo;
	}

	public String getCreateUserBo() 
	{
		return createUserBo;
	}
	public void setUpdateUserBo(String updateUserBo) 
	{
		this.updateUserBo = updateUserBo;
	}

	public String getUpdateUserBo() 
	{
		return updateUserBo;
	}

	public void setJobParamMap( Map<String,String> jobParamMap ){
		this.jobParamMap = jobParamMap;
	}

	public Map<String,String> getJobParamMap(){
		return this.jobParamMap;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("jobName", getJobName())
            .append("jobDesc", getJobDesc())
            .append("jobGroup", getJobGroup())
            .append("methodName", getMethodName())
            .append("methodParam", getMethodParam())
            .append("cronExpression", getCronExpression())
            .append("misfirePolicy", getMisfirePolicy())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createdDateTime", getCreatedDateTime())
            .append("updatedDateTime", getUpdatedDateTime())
            .append("createUserBo", getCreateUserBo())
            .append("updateUserBo", getUpdateUserBo())
            .toString();
    }
}
